package fu.capstone.hanoicityguide.business.bo.nearbyplace;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.Category;
import fu.capstone.hanoicityguide.business.model.Place;
import fu.capstone.hanoicityguide.dataaccess.nearbyplace.NearbyPlaceDAO;
import fu.capstone.hanoicityguide.dataaccess.nearbyplace.NearbyPlaceDAOImp;

public class NearbyPlaceBOImp implements NearbyPlaceBO {

	private Context context;
	private NearbyPlaceDAO dao;

	public void setContext(Context context) {
		this.context = context;
	}

	public NearbyPlaceBOImp() {

	}

	public NearbyPlaceBOImp(Context ctx) {
		this.context = ctx;
		dao = new NearbyPlaceDAOImp(context);
	}

	@Override
	public ArrayList<Place> listNearbyPlace(double currentLat,
			double currentLong, double radius, String keyword,
			ArrayList<String> filter, String sorter) {
		// TODO Auto-generated method stub
		return dao.listNearbyPlace(currentLat, currentLong, radius, keyword,
				filter, sorter);

	}

	@Override
	public ArrayList<Category> getListCategory(String filter) {
		return dao.getListCategory(filter);
	}

}
